// 用户配置路由器，封装用户配置信息相关路由
const express = require('express')
const router = express()
const profileCtrl = require('../controller/profile')

// 获取指定用户配置信息
router.get('/:username', profileCtrl.getUserProfile)

// 关注用户
router.post('/:username/follow', profileCtrl.followUser)

// 取消关注用户
router.delete('/:username/follow', profileCtrl.unfollowUser)

module.exports = router
